//
// Created by cheng on 2021/01/22.
//

#include "Sort.h"

void Sort::printArray(int *array, int len) {
    cout << "array: {";
    for (int i = 0; i < len; ++i) {
        cout << array[i] << " ";
    }
    cout << "}" << endl;
}

int *Sort::randomArray(int len) {
    auto arr = new int[len];
    default_random_engine e;
    uniform_int_distribution<unsigned> u(0, 999);

    for (int i = 0; i < 10; i++) {
        arr[i] = u(e);
    }
    return arr;
}


